<h1>会员中心</h1>
<h2>个人资料</h2>
<?php $error = getFlashMsg();
if($error):?>
<div class="errorbox"><?php echo $error;?></div>
<?php endif;?>
<form action="<?php echo url_for('user/profile_update');?>" method="post">
  <input type="hidden" value="true" name="save">
  <table width="100%" cellspacing="0" cellpadding="0" class="frame">
    <tbody><tr>
      <td>
          <table width="100%" cellspacing="0" cellpadding="10" border="0">
          <tbody>
          <tr>
            <td class="fieldarea">登录帐号</td>
            <td><input type="text" size="50" value="<?php echo $user->getUsername();?>" disabled="true"></td>
          </tr>
          <tr>
            <td class="fieldarea">账户余额</td>
            <td><input type="text" size="50" value="<?php echo $user->getJb();?>" disabled="true"></td>
          </tr>
          <tr>
            <td width="150" class="fieldarea">姓名</td>
            <td><input type="text" size="25" value="<?php echo $user->getName();?>" name="name"></td>
          </tr>
          <tr>
            <td class="fieldarea">QQ(重要)</td>
            <td><input type="text" size="25" value="<?php echo $user->getQq();?>" name="qq"></td>
          </tr>
          <tr>
            <td class="fieldarea">电子邮件(重要,消息通知用)</td>
            <td><input type="text" size="50" name="email" value="<?php echo $user->getEmail();?>"></td>
          </tr>
          <tr>
            <td class="fieldarea">手机号码(重要)</td>
            <td><input type="text" size="25" name="phone" value="<?php echo $user->getPhone();?>"></td>
          </tr>
      </tbody>
          </table>
      </td>
    </tr>
  </tbody>
  </table>
  <p>个人资料如有更新请随时更新，如要修改密码，请点忘记密码</p>
    <p align="center">
    <input type="submit" class="button" value="更新">
    <input type="reset" class="button" value="取消">
  </p>
</form>


